package com.dingreading.cloud.web.service.impl;

import com.dingreading.cloud.web.entity.ReadInterestBook;
import com.dingreading.cloud.web.entity.table.ReadInterestBookTableDef;
import com.dingreading.cloud.web.mapper.ReadInterestBookMapper;
import com.dingreading.cloud.web.service.ReadInterestBookService;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2024-09-11
 */
@Service
public class ReadInterestBookServiceImpl extends BaseServiceImpl<ReadInterestBookMapper, ReadInterestBook, ReadInterestBookTableDef> implements ReadInterestBookService {

    @Override
    protected ReadInterestBookTableDef getTable() {
        return ReadInterestBookTableDef.readInterestBook;
    }

    @Resource
    private ReadInterestBookMapper readInterestBookMapper;

    @Override
    public List<String> getBookList(Integer stage, List<Integer> interestTypes, List<Integer> interestTypeNums) {
        return readInterestBookMapper.getBookList(stage, interestTypes, interestTypeNums);
    }

}
